(window.webpackJsonp = window.webpackJsonp || []).push([["chunk-d4724fde"], {
    "206d": function (e, t, o) {
      "use strict";
  
      var r = o("9cbb");
      var i = o.n(r);
      i.a;
    },
    "2f3b": function (e, t, o) {
      "use strict";
  
      o.d(t, "g", function () {
        return i;
      });
      o.d(t, "f", function () {
        return n;
      });
      o.d(t, "e", function () {
        return a;
      });
      o.d(t, "d", function () {
        return s;
      });
      o.d(t, "b", function () {
        return l;
      });
      o.d(t, "c", function () {
        return c;
      });
      o.d(t, "a", function () {
        return u;
      });
      var r = o("365c");
      function i(e) {
        var t = "MainPage/getTodoList";
        return Object(r.j)(t, e);
      }
      function n(e) {
        var t = "MainPage/getNews";
        return Object(r.j)(t, e);
      }
      function a(e) {
        var t = "SalesInventory/WeeklyRankingList";
        return Object(r.j)(t, e);
      }
      function s(e) {
        var t = "SalesInventory/MonthRankingList";
        return Object(r.j)(t, e);
      }
      function l(e) {
        var t = "Login/ModifyUser";
        return Object(r.j)(t, e);
      }
      function c(e) {
        var t = "Login/ModifyUserNew";
        return Object(r.j)(t, e);
      }
      function u(e) {
        var t = "Notice/GetNotice";
        return Object(r.i)(t, e);
      }
    },
    "394b": function (e, t, o) {},
    "9cbb": function (e, t, o) {},
    a55b: function (e, t, o) {
      "use strict";
  
      o.r(t);
      function r() {
        var e = this;
        var t = e.$createElement;
        var o = e._self._c || t;
        return o("div", {
          staticClass: "login-wrap"
        }, [e._m(0), o("section", [o("main", [e.showNextView ? e.showNextView && e.supplieNameShow ? o("div", {
          directives: [{
            name: "loading",
            rawName: "v-loading.lock",
            value: e.loading,
            expression: "loading",
            modifiers: {
              lock: true
            }
          }],
          staticClass: "main-wrap",
          attrs: {
            "element-loading-background": "rgba(255, 255, 255, .9)"
          }
        }, [o("div", {
          staticClass: "form-group"
        }, [o("div", {
          staticClass: "form-main",
          staticStyle: {
            "min-height": "368px"
          }
        }, [e._m(2), o("el-form", {
          ref: "loginForm",
          staticClass: "loginForm",
          attrs: {
            model: e.loginForm,
            rules: e.formRules,
            "label-width": "0",
            "label-position": "left"
          }
        }, [o("el-form-item", {
          attrs: {
            label: "",
            prop: "SupplierNo"
          }
        }, [o("p", {
          staticClass: "form-label"
        }, [e._v("单位名称：")]), o("el-select", {
          ref: "supplier",
          staticClass: "select_input",
          attrs: {
            filterable: "",
            placeholder: "请选择单位名称"
          },
          model: {
            value: e.loginForm.SupplierNo,
            callback: function (t) {
              e.$set(e.loginForm, "SupplierNo", typeof t === "string" ? t.trim() : t);
            },
            expression: "loginForm.SupplierNo"
          }
        }, e._l(e.SupplierList, function (e) {
          return o("el-option", {
            key: e.SupplierId,
            attrs: {
              label: e.SupplierName,
              value: e.SupplierId
            }
          });
        }))], 1), o("el-form-item", {
          staticClass: "btn-group"
        }, [o("el-button", {
          staticClass: "btn-login",
          attrs: {
            type: "primary"
          },
          on: {
            click: function (t) {
              e.submitForm("loginForm");
            }
          }
        }, [e._v("确认")]), o("el-button", {
          staticClass: "btn-reply",
          attrs: {
            type: "text",
            size: "medium"
          },
          on: {
            click: function (t) {
              e.showNextView = false;
            }
          }
        }, [e._v("返回上一步")])], 1)], 1)], 1)])]) : e._e() : o("div", {
          directives: [{
            name: "loading",
            rawName: "v-loading.lock",
            value: e.loading,
            expression: "loading",
            modifiers: {
              lock: true
            }
          }],
          staticClass: "main-wrap",
          attrs: {
            "element-loading-background": "rgba(255, 255, 255, .9)"
          }
        }, [o("div", {
          staticClass: "form-group"
        }, [o("div", {
          staticClass: "form-main"
        }, [e._m(1), o("el-form", {
          ref: "loginForm",
          staticClass: "loginForm",
          attrs: {
            model: e.loginForm,
            rules: e.formRules,
            "label-width": "0",
            "label-position": "left"
          },
          nativeOn: {
            submit: function (e) {
              e.preventDefault();
            }
          }
        }, [o("el-form-item", {
          attrs: {
            label: "",
            prop: "UserName"
          }
        }, [o("p", {
          staticClass: "form-label"
        }, [e._v("用户名：")]), o("el-input", {
          staticClass: "input_el",
          attrs: {
            autofocus: "",
            type: "text",
            placeholder: "请输入用户名",
            "auto-complete": "off"
          },
          on: {
            blur: e.blurName
          },
          nativeOn: {
            keyup: function (t) {
              if ("button" in t || !e._k(t.keyCode, "enter", 13, t.key, "Enter")) {
                return e.blurName(t);
              } else {
                return null;
              }
            }
          },
          model: {
            value: e.loginForm.UserName,
            callback: function (t) {
              e.$set(e.loginForm, "UserName", typeof t === "string" ? t.trim() : t);
            },
            expression: "loginForm.UserName"
          }
        })], 1), o("el-form-item", {
          staticClass: "pw-item",
          attrs: {
            label: "",
            prop: "UserPwd"
          }
        }, [o("p", {
          staticClass: "form-label"
        }, [e._v("密码：")]), o("el-input", {
          staticClass: "input_el",
          attrs: {
            type: e.PwType,
            placeholder: "请输入密码",
            "auto-complete": "off"
          },
          nativeOn: {
            keyup: function (t) {
              if (!("button" in t) && t.keyCode !== 13) {
                return null;
              }
              e.handleKeyup(t);
            }
          },
          model: {
            value: e.loginForm.UserPwd,
            callback: function (t) {
              e.$set(e.loginForm, "UserPwd", typeof t === "string" ? t.trim() : t);
            },
            expression: "loginForm.UserPwd"
          }
        }, [o("p", {
          attrs: {
            slot: "suffix"
          },
          on: {
            click: e.togglePwStatu
          },
          slot: "suffix"
        }, [o("i", {
          class: [e.PwView ? "icon-view" : "icon-no-view"]
        })])])], 1), o("el-form-item", {
          staticClass: "code",
          attrs: {
            label: "",
            prop: "Code"
          }
        }, [o("p", {
          staticClass: "form-label"
        }, [e._v("验证码：")]), o("el-input", {
          staticClass: "input_el",
          attrs: {
            autofocus: "",
            type: "text",
            placeholder: "请输入验证码",
            "auto-complete": "off"
          },
          nativeOn: {
            keyup: function (t) {
              if (!("button" in t) && t.keyCode !== 13) {
                return null;
              }
              e.handleKeyup(t);
            }
          },
          model: {
            value: e.loginForm.Code,
            callback: function (t) {
              e.$set(e.loginForm, "Code", typeof t === "string" ? t.trim() : t);
            },
            expression: "loginForm.Code"
          }
        }, [o("img", {
          staticClass: "code-img",
          attrs: {
            slot: "suffix",
            src: e.Source
          },
          on: {
            click: e.toggleCode
          },
          slot: "suffix"
        })])], 1), o("el-form-item", {
          staticClass: "btn-group"
        }, [o("el-button", {
          staticClass: "btn-login",
          attrs: {
            type: "primary"
          },
          on: {
            click: function (t) {
              e.handleLoginBtn("loginForm");
            }
          }
        }, [e._v("登录")]), e.showEditPawBtn ? o("el-tooltip", {
          attrs: {
            effect: "light",
            manual: true,
            content: "请点击这里修改密码！",
            placement: "bottom-start"
          },
          model: {
            value: e.showEditTip,
            callback: function (t) {
              e.showEditTip = t;
            },
            expression: "showEditTip"
          }
        }, [o("el-button", {
          staticClass: "btn-login",
          attrs: {
            type: "warning"
          },
          on: {
            click: e.passwordChange
          }
        }, [e._v("修改密码")])], 1) : e._e()], 1)], 1)], 1)])])]), e._m(3)]), o("el-dialog", {
          attrs: {
            "custom-class": "edit_password",
            title: "修改密码",
            "before-close": e.handleBeforeClose,
            visible: e.editDialogVisible,
            center: "",
            width: "580px"
          },
          on: {
            "update:visible": function (t) {
              e.editDialogVisible = t;
            }
          }
        }, [o("el-form", {
          ref: "formPw",
          staticClass: "form-inline edit_form_style clearfix",
          attrs: {
            model: e.formPw,
            rules: e.rules,
            "label-width": "110px",
            "label-position": "left",
            inline: true
          }
        }, [o("el-form-item", {
          staticClass: "form-input fl",
          attrs: {
            label: "用户名：",
            prop: "UN"
          }
        }, [o("el-input", {
          attrs: {
            type: "text",
            placeholder: "请输入用户名",
            "auto-complete": "off",
            clearable: ""
          },
          model: {
            value: e.formPw.UN,
            callback: function (t) {
              e.$set(e.formPw, "UN", typeof t === "string" ? t.trim() : t);
            },
            expression: "formPw.UN"
          }
        })], 1), o("el-form-item", {
          staticClass: "form-input fl",
          attrs: {
            label: "原密码：",
            prop: "PW"
          }
        }, [o("el-input", {
          attrs: {
            type: "password",
            placeholder: "请输入原密码",
            clearable: "",
            "show-password": "",
            "auto-complete": "off"
          },
          model: {
            value: e.formPw.PW,
            callback: function (t) {
              e.$set(e.formPw, "PW", typeof t === "string" ? t.trim() : t);
            },
            expression: "formPw.PW"
          }
        })], 1), o("el-form-item", {
          staticClass: "form-input my_tips fl",
          attrs: {
            label: ""
          }
        }, [o("span", {
          staticClass: "err_tip"
        }, [e._v("新密码要求：大小写字母、数字、特殊字符[如：!、@、$等]四者取其三或以上，且必须8-20位字符。")])]), o("el-form-item", {
          staticClass: "form-input new_password fl",
          attrs: {
            label: "新密码：",
            prop: "NP"
          }
        }, [o("el-input", {
          attrs: {
            type: "password",
            placeholder: "请输入新密码",
            clearable: "",
            "show-password": "",
            "show-message": false,
            "auto-complete": "off"
          },
          nativeOn: {
            input: function (t) {
              return e.handleInputNP(t);
            }
          },
          model: {
            value: e.formPw.NP,
            callback: function (t) {
              e.$set(e.formPw, "NP", typeof t === "string" ? t.trim() : t);
            },
            expression: "formPw.NP"
          }
        }), e.formPw.NP.trim().length ? o("paw-strength", {
          staticStyle: {
            "padding-top": "10px"
          },
          model: {
            value: e.formPw.NP,
            callback: function (t) {
              e.$set(e.formPw, "NP", t);
            },
            expression: "formPw.NP"
          }
        }) : e._e()], 1), o("el-form-item", {
          staticClass: "form-input fl",
          attrs: {
            label: "确认密码：",
            prop: "CP"
          }
        }, [o("el-input", {
          attrs: {
            type: "password",
            placeholder: "请再次输入新密码",
            clearable: "",
            "show-password": "",
            "auto-complete": "off"
          },
          nativeOn: {
            input: function (t) {
              return e.handleInputCP(t);
            }
          },
          model: {
            value: e.formPw.CP,
            callback: function (t) {
              e.$set(e.formPw, "CP", typeof t === "string" ? t.trim() : t);
            },
            expression: "formPw.CP"
          }
        })], 1)], 1), o("span", {
          staticClass: "dialog-footer",
          attrs: {
            slot: "footer"
          },
          slot: "footer"
        }, [o("el-button", {
          attrs: {
            type: "primary"
          },
          on: {
            click: e.handleSubmit
          }
        }, [e._v("提 交")]), o("el-button", {
          staticClass: "btn-cancel",
          on: {
            click: e.handleCancel
          }
        }, [e._v("取 消")])], 1)], 1)], 1);
      }
      var i = [function () {
        var e = this;
        var t = e.$createElement;
        var r = e._self._c || t;
        return r("header", {
          staticClass: "clearfix"
        }, [r("div", {
          staticClass: "head-wrap-logo fl"
        }, [r("img", {
          staticClass: "logo",
          attrs: {
            src: o("cf05"),
            alt: "logo"
          }
        })]), r("div", {
          staticClass: "head-wrap-right fl"
        }, [r("div", {
          staticClass: "head-right-body"
        }, [r("h3", {
          staticClass: "fl"
        }, [r("img", {
          attrs: {
            src: o("ac76"),
            alt: "supplier"
          }
        })])])])]);
      }, function () {
        var e = this;
        var t = e.$createElement;
        var o = e._self._c || t;
        return o("hgroup", [o("h2", [e._v("欢迎登录凤凰新华供应商服务平台！")]), o("h3", [e._v("登录以管理您的帐户")])]);
      }, function () {
        var e = this;
        var t = e.$createElement;
        var o = e._self._c || t;
        return o("hgroup", [o("h2", [e._v("欢迎登录凤凰新华供应商服务平台！")]), o("h3", [e._v("登录以管理您的帐户")])]);
      }, function () {
        var e = this;
        var t = e.$createElement;
        var o = e._self._c || t;
        return o("footer", [o("p", [e._v("Copyright 2016 江苏凤凰新华书店集团有限公司 All Rights Reserved。")]), o("p", [e._v("中国人民共和国互联网出版许可证新出网证(苏)字001号")]), o("p", [e._v("苏ICP备06007651号-3")]), o("p", [e._v("建议使用IE10或以上版本 1920*1080 分辨率浏览本站")])]);
      }];
      o("8e6e");
      o("a481");
      o("ac6a");
      o("456d");
      var n = o("bd86");
      o("4917");
      o("6762");
      o("2fdb");
      o("7f7f");
      var a = o("2f62");
      var s = o("a18c");
      var l = o("41cb");
      var c = o("510f");
      var u = o("8b55");
      var d = o("b3ba");
      var f = o("365c");
      var p = o("2f3b");
      function g(e, t) {
        var o = Object.keys(e);
        if (Object.getOwnPropertySymbols) {
          var r = Object.getOwnPropertySymbols(e);
          if (t) {
            r = r.filter(function (t) {
              return Object.getOwnPropertyDescriptor(e, t).enumerable;
            });
          }
          o.push.apply(o, r);
        }
        return o;
      }
      function m(e) {
        for (var t = 1; t < arguments.length; t++) {
          var o = arguments[t] != null ? arguments[t] : {};
          if (t % 2) {
            g(o, true).forEach(function (t) {
              Object(n.a)(e, t, o[t]);
            });
          } else if (Object.getOwnPropertyDescriptors) {
            Object.defineProperties(e, Object.getOwnPropertyDescriptors(o));
          } else {
            g(o).forEach(function (t) {
              Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(o, t));
            });
          }
        }
        return e;
      }
      var h = window.sessionStorage;
      function w(e) {
        var t;
        var o;
        var r;
        var i = [];
        var n = Object(u.a)(e);
        var a = n ? n.menuList : [];
        var l = n ? n.menuObjList : [];
        s.a.map(function (e) {
          o = e.meta.name;
          r = a.includes(o);
          if (o === "page404") {
            i.push(e);
          }
          if (r) {
            i.push(e);
          }
        });
        if (i.length) {
          t = i[0];
          s.b[0].children = i;
        }
        return {
          firstRoute: t,
          indexRouter: s.b,
          accessRouter: i,
          menuObjList: l
        };
      }
      var b = {
        name: "login",
        data: function () {
          var e = this;
          function t(t, o, r) {
            if (o === "") {
              r(new Error("请输入新密码"));
            } else {
              var i = 0;
              if (e.formPw.NP !== "") {
                if (e.formPw.NP.match(/([a-z])+/)) {
                  i++;
                }
                if (e.formPw.NP.match(/([0-9])+/)) {
                  i++;
                }
                if (e.formPw.NP.match(/([A-Z])+/)) {
                  i++;
                }
                if (e.formPw.NP.match(/([\W])+/) && !e.formPw.NP.match(/(![\u4E00-\u9FA5])+/)) {
                  i++;
                }
                if (e.formPw.NP.length < 8 || e.formPw.NP.length > 20) {
                  r(new Error(" "));
                  i = 0;
                }
                if (e.formPw.NP.match(/([\u4E00-\u9FA5])+/)) {
                  r(new Error("不能包含中文字符"));
                  i = 0;
                }
                switch (i) {
                  case 0:
                    r(new Error(" "));
                    break;
                  case 1:
                    r(new Error(" "));
                    break;
                  case 2:
                    r(new Error(" "));
                    break;
                  case 3:
                  case 4:
                    break;
                  default:
                    break;
                }
              }
              r();
            }
          }
          function o(t, o, r) {
            if (o === "") {
              r(new Error("请再次确认密码!"));
            } else if (o !== e.formPw.NP) {
              r(new Error("两次输入的密码不匹配，请重新输入！"));
            } else {
              r();
            }
          }
          return {
            supplieNameShow: false,
            showNextView: false,
            PwView: true,
            PwType: "password",
            loginForm: {
              UserName: "",
              UserPwd: "",
              SupplierNo: "",
              Code: "",
              SignCode: ""
            },
            formRules: {
              UserName: [{
                required: true,
                message: "填写完用户名才能执行下一步操作",
                trigger: "blur"
              }],
              SupplierNo: [{
                required: true,
                message: "业务部门不能为空",
                trigger: "blur"
              }],
              UserPwd: [{
                required: true,
                message: "密码不能为空",
                trigger: "blur"
              }],
              Code: [{
                required: true,
                message: "验证码不能为空",
                trigger: "blur"
              }]
            },
            SupplierList: [],
            Source: "",
            editLogLoading: "",
            loadingNum: 0,
            showEditPawBtn: false,
            showEditTip: false,
            editDialogVisible: false,
            DialogSupplierList: [],
            formPw: {
              UN: "",
              SNo: "",
              PW: "",
              NP: "",
              CP: ""
            },
            rules: {
              UN: [{
                required: true,
                message: "请输入用户名",
                trigger: "blur"
              }],
              SNo: [{
                required: true,
                message: "业务部门不能为空",
                trigger: "blur"
              }],
              PW: [{
                required: true,
                message: "请输入原密码",
                trigger: "blur"
              }],
              NP: [{
                required: true,
                validator: t,
                trigger: ["blur", "change"]
              }, {
                min: 8,
                max: 20,
                message: "长度在 8 到 20 个字符",
                trigger: "blur"
              }],
              CP: [{
                required: true,
                validator: o,
                trigger: "blur"
              }]
            }
          };
        },
        components: {
          PawStrength: d.a
        },
        mixins: [c.a],
        computed: m({}, Object(a.d)(["loading"])),
        watch: {
          SupplierList: function (e, t) {
            var o = this;
            var r = e.length;
            if (r) {
              // TOLOOK
              setTimeout(function () {
                o.loginForm.SupplierNo = e[0].SupplierId;
              }, 16);
            }
          },
          DialogSupplierList: function (e, t) {
            var o = this;
            var r = e.length;
            if (r) {
              // TOLOOK
              setTimeout(function () {
                o.formPw.SNo = e[0].SupplierId;
              }, 16);
            }
          }
        },
        created: function () {
          this.init();
        },
        mounted: function () {},
        methods: m({}, Object(a.c)(["updateLoading", "updateRoleType", "updateMenuList", "updateFlatList"]), {
          init: function () {
            this.updateLoading(true);
            this.supplieNameShow = false;
            this.showNextView = false;
            this.getVerificationCode();
          },
          getVerificationCode: function () {
            var e = this;
            Object(f.f)().then(this.globelReqHandle).then(function (t) {
              var o = t.data;
              var r = o.Data;
              o.Msg;
              o.Total;
              if (Object.keys(r).length) {
                e.Source = r.Source;
                e.loginForm.SignCode = r.Code;
                return Promise.resolve();
              } else {
                e.$notify({
                  type: "error",
                  title: "提示",
                  message: "获取验证码失败",
                  duration: 6000
                });
                return false;
              }
            }).then(function () {
              return e.closeLoading();
            }).catch(this.globelErrHandle);
          },
          blurName: function (e) {
            var t = this;
            this.updateLoading(true);
            var o = this.loginForm.UserName;
            if (!o) {
              this.loginForm.SupplierNo = "";
              this.SupplierList = [];
              this.updateLoading(false);
              return false;
            }
            var r = {
              UserName: o
            };
            Object(f.d)(r).then(this.globelReqHandle).then(function (e) {
              var o = e.data;
              o.Code;
              o.Msg;
              o.Data;
              var r = o.IsShow;
              t.supplieNameShow = r == 1;
              // TOLOOK
              setTimeout(function () {
                t.updateLoading(false);
              }, 500);
            }).catch(this.globelErrHandle);
          },
          togglePwStatu: function () {
            var e = this.PwView;
            this.PwType = e ? "text" : "password";
            this.PwView = !e;
          },
          toggleCode: function () {
            this.getVerificationCode();
          },
          handleKeyup: function (e) {
            var t = this.loginForm;
            var o = t.UserName;
            var r = t.UserPwd;
            var i = t.SupplierNo;
            var n = t.Code;
            if (!o || !r || !i || !n) {
              return false;
            }
            this.handleLoginBtn();
          },
          handleLoginBtn: function () {
            var e = this;
            if (this.supplieNameShow) {
              var t;
              var o = this.loginForm;
              var r = o.UserName;
              var i = o.UserPwd;
              o.SupplierNo;
              o.Code;
              o.SignCode;
              this.$refs.loginForm.validate(function (e) {
                t = !!e;
              });
              if (!t) {
                this.$notify({
                  type: "error",
                  title: "提示",
                  message: "请检查输入的内容是否正确且不为空",
                  duration: 6000
                });
                return false;
              }
              this.updateLoading(true);
              var n = {
                UserName: r,
                UserPwd: i
              };
              Object(f.h)(n).then(this.globelReqHandle).then(function (t) {
                t.data;
                e.showEditPawBtn = false;
                e.showNextView = true;
                var o = e.loginForm.UserName;
                var r = {
                  UserName: o
                };
                Object(f.e)(r).then(e.globelReqHandle).then(function (t) {
                  var o = t.data;
                  o.Code;
                  o.Msg;
                  var r = o.Data;
                  o.IsShow;
                  r.length;
                  e.SupplierList = r;
                  // TOLOOK
                  setTimeout(function () {
                    e.updateLoading(false);
                  }, 500);
                }).catch(e.globelErrHandle);
              }).catch(function (t) {
                var o = t.data;
                var r = o.Code;
                o.Msg;
                if (r === 300) {
                  e.showEditPawBtn = true;
                  // TOLOOK
                  setTimeout(function () {
                    e.showEditTip = true;
                  }, 1000);
                }
                e.updateLoading(false);
                e.toggleCode();
                e.globelErrHandle(t);
              });
            } else {
              this.submitForm();
            }
          },
          submitForm: function () {
            var e;
            var t = this;
            var o = "";
            o = Object(u.b)("IsCurrentUser");
            var r = this.loginForm;
            var i = r.UserName;
            var n = r.UserPwd;
            var a = r.SupplierNo;
            var s = r.Code;
            var l = r.SignCode;
            this.$refs.loginForm.validate(function (t) {
              e = !!t;
            });
            if (!e) {
              this.$notify({
                type: "error",
                title: "提示",
                message: "请检查输入的内容是否正确且不为空",
                duration: 6000
              });
              return false;
            }
            this.updateLoading(true);
            var c = {
              UserName: i,
              UserPwd: n,
              SupplierNo: a,
              Code: s,
              SignCode: l
            };
            Object(f.g)(c).then(this.globelReqHandle).then(function (e) {
              var r = e.data;
              r.Code;
              r.Msg;
              var i = r.Data;
              var n = i.UserInfo;
              var a = n ? n.RoleType : "";
              var s = n ? n.SupplierNo : "";
              var l = n ? n.UserName : "";
              var d = JSON.stringify(i.UserInfo);
              var f = JSON.stringify(i.Token);
              Object(u.f)("js_supplier", d);
              Object(u.f)("token", f);
              h.setItem(`sign_${c.UserName}`, l);
              if (o != null) {
                Object(u.f)("IsCurrentUser", "1");
              } else {
                Object(u.f)("IsCurrentUser", "0");
              }
              t.updateRoleType(a);
              t.showEditPawBtn = false;
              console.log(i.Token);
              console.log('上上下下左左右右BABA')
              if(window.location.search) {
                  const urlParams = new URLSearchParams(window.location.search)
                  const by = decodeURIComponent(urlParams.get('by'));
                  const to = decodeURIComponent(urlParams.get('from'))
                  const isbn = urlParams.get('isbn')
                  const serialNo = urlParams.get('serialNo')
                  window.location.href = `${to}?username=${c.UserName}&phpsessid=${JSON.stringify(i)}&by=${by}&isbn=${isbn}&serialNo=${serialNo}`
              }
            //   t.getRoleMenu(a, s, l);
            }).catch(function (e) {
              var o = e.data;
              var r = o.Code;
              o.Msg;
              if (r === 300) {
                t.showEditPawBtn = true;
                // TOLOOK
                setTimeout(function () {
                  t.showEditTip = true;
                }, 1000);
              }
              t.updateLoading(false);
              t.toggleCode();
              t.globelErrHandle(e);
            });
          },
          getRoleMenu: function (e, t, o) {
            var r = this;
            var i = e === "普通业务员";
            var n = i ? t : o;
            var a = {
              LoginUserCode: n
            };
            Object(f.l)(a).then(function (e) {
              var t = e.data;
              var o = t.Code;
              t.Message;
              var i = t.Data;
              if (o !== 200) {
                r.updateLoading(false);
                return Promise.reject(e);
              }
              var n = w(i);
              var a = n.firstRoute;
              var s = a.name;
              var c = n.indexRouter;
              var u = n.menuObjList;
              r.updateMenuList(i);
              r.updateFlatList(u);
              l.a.addRoutes(c);
              if (!a || s === "page404") {
                r.$notify({
                  type: "error",
                  title: "提示",
                  message: "无权限访问！",
                  duration: 6000
                });
                r.updateLoading(false);
                r.toggleCode();
                return false;
              }
              r.$router.push({
                name: s,
                replace: true
              });
            }).catch(function (e) {
              console.log(e);
              r.updateLoading(false);
              r.toggleCode();
              var t = e.message ? e.message : "无权限访问！";
              r.$notify({
                type: "error",
                title: "提示",
                message: t,
                duration: 6000
              });
            });
          },
          passwordChange: function () {
            this.editDialogVisible = true;
            this.showEditTip = false;
          },
          handleBeforeClose: function (e) {
            this.showEditLoading(false);
            this.$refs.formPw.resetFields();
            e();
          },
          dialogBlurName: function (e) {
            var t = this;
            this.loadingNum++;
            if (this.loadingNum === 1) {
              this.showEditLoading(true);
            }
            var o = this.formPw.UN;
            if (!o) {
              this.formPw.SNo = "";
              this.DialogSupplierList = [];
              this.showEditLoading(false);
              return false;
            }
            var r = {
              UserName: o
            };
            Object(f.d)(r).then(this.globelReqHandle).then(function (e) {
              var o = e.data;
              o.Code;
              o.Msg;
              var r = o.Data;
              var i = r.length;
              if (!i) {
                t.formPw.SNo = "";
                t.$notify({
                  type: "error",
                  title: "提示",
                  message: "暂无关联供应商！",
                  duration: 6000
                });
              }
              t.DialogSupplierList = r;
              t.$refs.dialogSupplier.focus();
              // TOLOOK
              setTimeout(function () {
                t.showEditLoading(false);
              }, 500);
            }).catch(this.globelErrHandle);
          },
          handleSubmit: function () {
            var e = this;
            var t = false;
            this.$refs.formPw.validate(function (e) {
              if (!e) {
                return false;
              }
              t = true;
            });
            if (!t) {
              return false;
            }
            this.showEditLoading(true);
            var o = this.formPw;
            var r = o.UN;
            o.SNo;
            var i = o.PW;
            var n = o.NP;
            var a = {
              UserName: r,
              UserPwd: i,
              UserPwdNew: n
            };
            Object(p.c)(a).then(this.globelReqHandle).then(function (t) {
              var o = t.data;
              o.Data;
              o.Msg;
              o.Code;
              e.$refs.formPw.resetFields();
              e.editDialogVisible = false;
              e.showEditLoading(false);
              e.$notify.success({
                title: "提示",
                message: "密码修改成功请重新登录",
                duration: 6000
              });
            }).catch(function (t) {
              // TOLOOK
              setTimeout(function () {
                return e.showEditLoading(false);
              }, 500);
              e.globelErrHandle(t);
            });
          },
          showEditLoading: function (e) {
            if (e) {
              this.editLogLoading = this.$loading({
                lock: true,
                text: "修改中···",
                backgroundColor: "rgba(55,55,55,0.4)",
                spinner: "el-icon-loading",
                target: document.querySelector(".edit_password")
              });
            } else if (this.editLogLoading !== "") {
              this.editLogLoading.close();
              this.editLogLoading = "";
              this.loadingNum = 0;
            }
          },
          handleInputNP: function (e) {
            var t = e.target.value;
            var o = /(^\s+)|(\s+$)|\s+/g;
            this.formPw.NP = t.replace(o, "");
          },
          handleInputCP: function (e) {
            var t = e.target.value;
            var o = /(^\s+)|(\s+$)|\s+/g;
            this.formPw.CP = t.replace(o, "");
          },
          handleCancel: function () {
            this.showEditLoading(false);
            this.$refs.formPw.resetFields();
            this.editDialogVisible = false;
          }
        })
      };
      var P = b;
      o("206d");
      var v = o("2877");
      var C = Object(v.a)(P, r, i, false, null, null, null);
      t.default = C.exports;
    },
    ac76: function (e, t, o) {
      e.exports = o.p + "http://b2b.ppm.cn/img/login-title.54c1b439.png";
    },
    b3ba: function (e, t, o) {
      "use strict";
  
      function r() {
        var e = this;
        var t = e.$createElement;
        var o = e._self._c || t;
        return o("div", {
          staticClass: "container_box_wrap"
        }, [o("el-row", [o("el-col", {
          attrs: {
            span: 6
          }
        }, [o("el-progress", {
          attrs: {
            percentage: e.onePercentage,
            color: "oneCustomColors",
            format: e.oneFormat,
            "stroke-width": 3
          }
        })], 1), o("el-col", {
          attrs: {
            span: 6,
            offset: 1
          }
        }, [o("el-progress", {
          attrs: {
            percentage: e.twoPercentage,
            color: e.twoCustomColors,
            format: e.twoFormat,
            "stroke-width": 3
          }
        })], 1), o("el-col", {
          attrs: {
            span: 6,
            offset: 1
          }
        }, [o("el-progress", {
          attrs: {
            percentage: e.ThreePercentage,
            color: e.ThreeCustomColors,
            format: e.ThreeFormat,
            "stroke-width": 3
          }
        })], 1), o("el-col", {
          staticStyle: {
            "line-height": "15px"
          },
          attrs: {
            span: 2,
            offset: 1
          }
        }, [e._v("\n      " + e._s(e.content) + "\n    ")])], 1)], 1);
      }
      var i = [];
      o("c5f6");
      var n = {
        name: "PasswordStrength",
        model: {
          event: "change",
          prop: "password"
        },
        props: {
          password: {
            type: [String, Boolean, Number, Object],
            required: true,
            default: ""
          }
        },
        watch: {
          password: function (e) {
            var t = this.checkPasswordStrength(e);
            switch (t) {
              case 0:
                this.content = "";
                this.onePercentage = 0;
                this.twoPercentage = 0;
                this.ThreePercentage = 0;
                break;
              case 1:
                this.content = "弱";
                this.onePercentage = 100;
                this.twoPercentage = 0;
                this.ThreePercentage = 0;
                break;
              case 2:
                this.content = "中";
                this.onePercentage = 100;
                this.twoPercentage = 100;
                this.ThreePercentage = 0;
                break;
              case 3:
                this.content = "中";
                this.onePercentage = 100;
                this.twoPercentage = 100;
                this.ThreePercentage = 0;
                break;
              default:
                this.content = "高";
                this.onePercentage = 100;
                this.twoPercentage = 100;
                this.ThreePercentage = 100;
                break;
            }
          }
        },
        data: function () {
          return {
            content: "",
            onePercentage: 0,
            twoPercentage: 0,
            ThreePercentage: 0,
            oneCustomColors: "#f56c6c",
            twoCustomColors: "#e6a23c",
            ThreeCustomColors: "#67c23a"
          };
        },
        methods: {
          oneFormat: function () {
            return "";
          },
          twoFormat: function () {
            return "";
          },
          ThreeFormat: function () {
            return "";
          },
          checkPasswordStrength: function (e) {
            var t = 0;
            if (e.length < 1) {
              return t;
            } else {
              if (/\d/.test(e)) {
                t++;
              }
              if (/[a-z]/.test(e)) {
                t++;
              }
              if (/[A-Z]/.test(e)) {
                t++;
              }
              if (/\W/.test(e)) {
                t++;
              }
              return t;
            }
          }
        }
      };
      var a = n;
      o("d57f");
      var s = o("2877");
      var l = Object(s.a)(a, r, i, false, null, null, null);
      t.a = l.exports;
    },
    cf05: function (e, t, o) {
      e.exports = o.p + "http://b2b.ppm.cn/img/logo.b20fddc5.png";
    },
    d57f: function (e, t, o) {
      "use strict";
  
      var r = o("394b");
      var i = o.n(r);
      i.a;
    }
  }]);